:: 支持utf-8编码显示
chcp 65001 > nul
set "MONGO_HOME=D:\Program Files\mongodb-win32-x86_64-windows-8.2.1"
cd /d "%MONGO_HOME%"
REM 判断目录是否存在
if not exist "data\config\c1"  mkdir "data\config\c1" "log\config\c1"
"%MONGO_HOME%\bin\mongod" --configsvr --replSet configRS --port 5001 ^
--dbpath "%MONGO_HOME%\data\config\c1" ^
--logpath "%MONGO_HOME%\log\config\c1\config_c1.log" ^
--logappend